var express = require('express');
var router = express.Router();

var dataCtrl = require('../controller/upload.controller');

router.post('/upload/:categoryId',dataCtrl.upload);
router.post('/list',dataCtrl.list);
router.delete('/data/:id',dataCtrl.remove);
router.post('/deletes',dataCtrl.deletes);//删除多个
router.post('/children',dataCtrl.lists);
router.put('/data/:id',dataCtrl.update);
// router.post('/list',dataCtrl.list);
// router.get('/data/:id',dataCtrl.get);
// router.put('/data/:id',dataCtrl.update);
// router.delete('/data/:id',dataCtrl.remove);
// router.get('/list/:type',dataCtrl.list);
module.exports = router;